From 1fcb66915a76e29fc4279dad50031671e40fc3c4 Mon Sep 17 00:00:00 2001 From: robertl Date: Sat, 25 Nov 2006 01:12:51 +0000 Subject: [PATCH] Support install prefix. --- Makefile.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 6a878c803..af3f51511 100644 --- a/Makefile.in +++ b/Makefile.in @@ -36,7 +36,8 @@ OUTPUT_SWITCH=-o # GBCFLAGS=$(EXTRA_CFLAGS) $(DEBUGGING) -I. -I@srcdir@/coldsync \ $(OPTIMIZATION) @CFLAGS@ LDFLAGS=$(EXTRA_LDFLAGS) @LDFLAGS@ -DESTDIR=/usr/local/ +PREFIX=@prefix@ +INSTALL_DIR=$(DESTDIR)/$(PREFIX) # OTHER_ROOT=/opt/local # For DarwinPorts on OSX # OTHER_ROOT=/sw # Uncomment For Fink on OS X. @@ -139,10 +140,12 @@ torture: # This will only work on UNIX-like substances. # install: @INSTALL_DEBUG@ - install gpsbabel $(DESTDIR)/bin + @mkdir -p $(INSTALL_DIR)/bin + install gpsbabel $(INSTALL_DIR)/bin/ install-debug: - install gpsbabel-debug $(DESTDIR)/bin + @mkdir -p $(INSTALL_DIR)/bin + install gpsbabel-debug $(INSTALL_DIR)/bin/ # Nerdy release stuff that needs to work only on Linux. -- 2.30.2